<!DOCTYPE html>
<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
	<title>商家一起赚</title>
	<?php echo $this->Html->css("Wechat.yiqizhuan.min")?>
	<style>
		html {
			height:100%;
		}
		body {
			background-color:#FFFFFF;
			margin:0;
			height:100%;
		}
	</style>
	<!-- copy these lines to your document head: -->

	<meta name="viewport" content="user-scalable=no, initial-scale=1.0, width=device-width" />
	<script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>
	<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
	<!-- end copy -->
  </head>
  <body>
  	<script type="text/javascript">
		var ww=$(window).width();
		var docwidth=400;
		if(ww<docwidth){
			$("head").append('<meta name="viewport" content="width=device-width, initial-scale='+(ww/docwidth)+',maximum-scale=1, user-scalable=no">');
		}
	</script>
	<!-- copy these lines to your document: -->

	<div id="index_hype_container" style="margin:auto;position:relative;width:100%;height:840px;overflow:hidden;">
		<script type="text/javascript" charset="utf-8" src="/web/sabi/sj/index_hype_generated_script.js?95874"></script>
	</div>

	<!-- end copy -->
	


	<!-- text content for search engines: -->

	<div style="display:none" aria-hidden=true>

		<div>别人中奖你分钱  别人花钱你赚钱</div>
		<div>让你的宝店赚得更多更快</div>
		<div>免费领宝码</div>
		<div>免费参加</div>
		<div>躺着就把钱赚了的感觉</div>
		<div></div>
		<div>查看收入看看今天赚了多少</div>
	</div>

	<!-- end text content: -->
<div class="weui-toptips weui-toptips_warn js_tooltips">错误提示</div>
    <div class="weui-toptips weui-toptips_info js_info_tooltips">一般提示</div>
	<script type="text/html" id="tpl_mobile">
			<div id="mobile_panel">
	<div class="shadow"></div>
	<div class="content">
		<?php echo $this->Html->image("Wechat.bind_mobile_head.jpg")?>
		<p class="title">请验证手机号，用于提现和中奖金发放的确认</p>
		<div class="weui-cells weui-cells_form">
            <div class="weui-cell weui-cell_vcode">
                <div class="weui-cell__bd">
                    <input class="weui-input mobile" name="mobile" type="tel" pattern="[0-9]{11}" placeholder="请输入手机号">
                </div>
            </div>
            <div class="weui-cell weui-cell_vcode">
                <div class="weui-cell__bd">
                    <input class="weui-input" name="code" type="number" pattern="[0-9]{6}"  placeholder="请输入短信码">
                </div>
                <div class="weui-cell__ft">
                    <button class="weui-btn weui-btn_primary weui-vcode-btn" id="btn_send_sms">获取验证码</button>
                </div>
            </div>
        </div>
        <div class="center weui-btn-area">
            <a class="weui-btn weui-btn_primary" href="javascript:" id="btn_submit">确定</a>
        </div>
	</div>
</div>
	</script>
	<?php echo $this->Html->script("template")?>
	<?php echo $this->Html->script("Wechat.common.min")?>
	<!-- end text content: -->
	<script type="text/javascript">
		var info=<?php echo json_encode($data)?>;
		 wx.config({
	            beta: true,
	            debug: false,
	            appId: "<?php echo $sign["appId"]?>",
	            timestamp:<?php echo $sign["timestamp"]?>,
	            nonceStr: "<?php echo $sign["nonceStr"]?>",
	            signature: "<?php echo $sign["signature"]?>",
	            jsApiList: [
					'checkJsApi',
					'openLocation',
					'getLocation',
					'hideMenuItems',
					'hideOptionMenu',
					'showOptionMenu',
					'closeWindow',
					'onMenuShareTimeline',
					'onMenuShareAppMessage',
					'onMenuShareQQ',
					'onMenuShareWeibo',
					'onMenuShareQZone'
	            ]
	        });
    	wx.ready(function(){
    		wx.hideMenuItems({
    			menuList: ['menuItem:copyUrl',
    			'menuItem:originPage',
    			'menuItem:favorite',
    			'menuItem:openWithQQBrowser',
    			'menuItem:openWithSafari',
    			'menuItem:share:email']
    		});
    		makeShare(info.title,info.desc,info.link,info.img);
    	});
    	<?php if(!empty($uid)){?>
        	function withLogin(url){
            	//如果已经登陆，则
        		go(url)
        	}
    	<?php }else{?>
        	function withLogin(url){
            	//如果已经登陆，则
        		bindMobile(url)
        	}
    	<?php }?>
	</script>
  </body>
</html>
